package String;
import utils.*;

public class StringDemo {
	static public void main(String[] args){
		String s = "hello";
		
		Utils.println(s);
		Utils.println(s.equals("hello"));
		Utils.println(s.length());
		Utils.println(s.toUpperCase());
		Utils.println(s.toLowerCase());
		
		String s1 = new String("1111111");
		Utils.println(s1);
		
		char[] ch = {'2','2','2','2','2'};
		String s2 = new String(ch);
		Utils.println(s2);
		
		byte[] b = "33333".getBytes();
		String s3 = new String(b);
		Utils.println(s3);
		
		StringBuffer sb = new StringBuffer("--------");
		String s4 = new String(sb);
		Utils.println(s4);
		
		StringBuilder sb2 = new StringBuilder("xxxxxxxx");
		String s5 = new String(sb2);
		Utils.println(s5);
		
		String s6 = "666666666666";
		Utils.println(s6);
	}
}
